package io.datajek.springbasics.movierecommendersystem.lesson2;

import io.datajek.springbasics.movierecommendersystem.lesson1.ContentBasedFilter;

public class RecommenderImplementation {
    //在构造器中创建Filter
    private Filter filter;
    public RecommenderImplementation (Filter filter){
        super();
        this.filter=filter;
    }

    //推荐电影的方法
    public String[] recommendermovie(String name){
        System.out.println("正在使用的过滤器名称："+filter);
        String [] result= filter.getRecommendations("推荐电影");
        return result;
    }

}
